package org.kdev.wtf.adapter.extjs;

import static org.kdev.wtf.WtfManager.adapter;

import org.kdev.wtf.AppManager;

public class ExtTestManager extends AppManager {

    public static void startApp(String login, String pass) {
	adapter.openUrl("/");
	adapter.waitForPageToLoad();
    }

    /**
     * @todo
     *
     * @param logLine
     * @return
     */
    public static boolean hasLogLineError(String logLine) {
	if (logLine.contains("ERROR") || logLine.contains("Exception")) {
	    System.out.println("!!! Blad w logach: " + logLine);
	    return true;
	}

	return false;
    }
}
